<html>
<head>

</head>
<style type = "text/css">
.style1{
font-family:LucidaHandwriting;
font-size:30px;
font-weight:bold;
}
.style2{
font-family: Arial;
font-size:20px;
font-weight:bold;
}
.class01{
font-family:Arial;
font-size:30px;	
font-weigth:bold;
color:#ECE8E1;
}
.style1:hover,.style2:hover
{
text-decoration : underline;
}
.classBtn
{
width: 291px;
height: 39px;
-webkit-border-radius: 10px;
color: #FFFFCC;
font-size: 26px;
background: -webkit-linear-gradient(#99CC33, #33CC33);
top : 0px;
display:inline-block;
position : relative;
}
.classBtn:hover
{
background: -webkit-linear-gradient(#33CC33, #0099FF);	
color: #FFFFFF;
}
</style>
<body>
<?php
$pi = 3.14;
if(isset($_POST["bankinh"]))
{
	$bankinh = $_POST["bankinh"];
	$chuvi = 2 * $pi * $bankinh;
	$dientich = $pi * pow($bankinh,2);
}

?>




<form id = "form1" name = "form1" action = "tinhDienTichVaChuViHinhTron.php" method = "post">
<table width = "400px" border = "0" align = "center" cellspacing = "2" cellpadding = "2" style = "background-color:#ffebca">
<tr>
<td colspan = "2" align = "center" bgcolor = "#ffbb55"><span class = "style1" > dien tich va chu vi hinh tron </span></td>
</tr>

<tr>
<td width = "200" align = "left"><span class = "style2">nhap ban kinh</span></td>
<td width = "200" align = "left"><label><input name = "bankinh" id = "bankinh" type = "text" value = "<?php if(isset($_POST["bankinh"])){echo $_POST["bankinh"];}?>"/></label></td>
</tr>

<tr>
<td width = "200" align = "left"><span class = "style2">chu vi hinh tron</span></td>
<td width = "100" align = "left"><label><input name = "chuvi" id = "chuvi" type = "text" value = "<?php if(isset($_POST["chuvi"])){echo $chuvi;}?>" readonly = "true" style = "background-color : #ffcc66"/></label></td>
</tr>

<tr>
<td width = "300" align = "left"><span class = "style2">dien tich hinh tron</span></td>
<td widtht = "100" align = "left"><label><input name = "dientich" id = "dientich" type ="text" value = "<?php if(isset($_POST["dientich"])){echo $dientich;}?>" readonly = "true" style = "background-color : #ffcc66"/></label></td>
</tr>

<tr>
<td colspan = "2" width = "400" align = "center"><label><input class="ClassBtn" type = "submit" value = "tinh dien tich va chu vi" name = "submit"/></label></td>
<td colspan = "2">&nbsp</td>

</tr>
</table>
</form>
</body>
</html>